‹#›
Inventor API 中的零件图、部件图和工程图
设置打开选项范例
'Create a new NameValueMap object
Dim oOptions As NameValueMap
oOptions = _InvApplication.TransientObjects.CreateNameValueMap
' Set the representations to use when creating the occurrence.
Call oOptions.Add("LevelOfDetailRepresentation", "MyLODRep")
Call oOptions.Add("PositionalRepresentation", "MyPositionalRep")
Call oOptions.Add("DesignViewRepresentation", "MyDesignViewRep")
Call oOptions.Add("DesignViewAssociative", True)
' Add the occurrence.
Dim oOcc As ComponentOccurrence
oOcc = oAsmCompDef.Occurrences.AddWithOptions("C:\Temp\Reps.iam", _
oMatrix, oOptions)